
import emo_1f60a from './1f60a.png'  //可爱
import emo_1f60d from './1f60d.png'  //色
import emo_1f60e from './1f60e.png'  //得意
import emo_1f60f from './1f60f.png'  //阴险
import emo_1f61d from './1f61d.png'  //调皮
import emo_1f61f from './1f61f.png'  //皱眉
import emo_1f62a from './1f62a.png'  //叹气
import emo_1f62b from './1f62b.png'  //伤心
import emo_1f62c from './1f62c.png'  //尴尬笑
import emo_1f62d from './1f62d.png'  //哭
import emo_1f62f from './1f62f.png'  //惊讶
import emo_1f63e from './1f63e.png'  //右哼哼
import emo_1f600 from './1f600.png'  //微笑
import emo_1f601 from './1f601.png'  //露齿笑
import emo_1f602 from './1f602.png'  //哭笑
import emo_1f605 from './1f605.png'  //尴尬
import emo_1f606 from './1f606.png'  //大笑
import emo_1f607 from './1f607.png'  //天使
import emo_1f608 from './1f608.png'  //魔鬼
import emo_1f609 from './1f609.png'  //眨眼
import emo_1f610 from './1f610.png'  //难过
import emo_1f612 from './1f612.png'  //鄙视
import emo_1f613 from './1f613.png'  //汗
import emo_1f614 from './1f614.png'  //失落
import emo_1f615 from './1f615.png'  //不屑
import emo_1f616 from './1f616.png'  //郁闷
import emo_1f618 from './1f618.png'  //亲亲
import emo_1f621 from './1f621.png'  //发怒
import emo_1f624 from './1f624.png'  //气愤
import emo_1f625 from './1f625.png'  //不安
import emo_1f629 from './1f629.png'  //发愁
import emo_1f631 from './1f631.png'  //尖叫
import emo_1f633 from './1f633.png'  //囧
import emo_1f634 from './1f634.png'  //睡
import emo_1f635 from './1f635.png'  //晕
import emo_1f637 from './1f637.png'  //口罩

import emo_1f4aa from './1f4aa.png'  //肌肉
import emo_1f44a from './1f44a.png'  //碰拳
import emo_1f44c from './1f44c.png'  //OK
import emo_1f44d from './1f44d.png'  //强
import emo_1f44e from './1f44e.png'  //弱
import emo_1f44f from './1f44f.png'  //鼓掌
import emo_1f64f from './1f64f.png'  //保佑
import emo_1f446 from './1f446.png'  //向上
import emo_1f447 from './1f447.png'  //向下
import emo_1f448 from './1f448.png'  //向左
import emo_1f449 from './1f449.png'  //向右
import emo_261d from './261d.png'    //不是
import emo_270a from './270a.png'    //拳头
import emo_270b from './270b.png'    //手掌
import emo_270c from './270c.png'    //剪刀

import emo_1f4a1 from './1f4a1.png'  //灯泡
import emo_1f4a3 from './1f4a3.png'  //炸弹
import emo_1f4a9 from './1f4a9.png'  //大便
import emo_1f437 from './1f437.png'  //猪头
import emo_bixin from './1f496.png'  //比心



export const EMOJIS_DATA = {
  '/{emo_1f60a}': emo_1f60a, //可爱
  '/{emo_1f60d}': emo_1f60d, //色
  '/{emo_1f60e}': emo_1f60e, //得意
  '/{emo_1f60f}': emo_1f60f, //阴险
  '/{emo_1f61d}': emo_1f61d, //调皮
  '/{emo_1f61f}': emo_1f61f, //皱眉
  '/{emo_1f62a}': emo_1f62a, //叹气
  '/{emo_1f62b}': emo_1f62b, //伤心
  '/{emo_1f62c}': emo_1f62c, //尴尬笑
  '/{emo_1f62d}': emo_1f62d, //哭
  '/{emo_1f62f}': emo_1f62f, //惊讶
  '/{emo_1f63e}': emo_1f63e, //右哼哼
  '/{emo_1f600}': emo_1f600, //微笑
  '/{emo_1f601}': emo_1f601, //露齿笑
  '/{emo_1f602}': emo_1f602, //哭笑
  '/{emo_1f605}': emo_1f605, //尴尬
  '/{emo_1f606}': emo_1f606, //大笑
  '/{emo_1f607}': emo_1f607, //天使
  '/{emo_1f608}': emo_1f608, //魔鬼
  '/{emo_1f609}': emo_1f609, //眨眼
  '/{emo_1f610}': emo_1f610, //难过
  '/{emo_1f612}': emo_1f612, //鄙视
  '/{emo_1f613}': emo_1f613, //汗
  '/{emo_1f614}': emo_1f614, //失落
  '/{emo_1f615}': emo_1f615, //不屑
  '/{emo_1f616}': emo_1f616, //郁闷
  '/{emo_1f618}': emo_1f618, //亲亲
  '/{emo_1f621}': emo_1f621, //发怒
  '/{emo_1f624}': emo_1f624, //气愤
  '/{emo_1f625}': emo_1f625, //不安
  '/{emo_1f629}': emo_1f629, //发愁
  '/{emo_1f631}': emo_1f631, //尖叫
  '/{emo_1f633}': emo_1f633, //囧
  '/{emo_1f634}': emo_1f634, //睡
  '/{emo_1f635}': emo_1f635, //晕
  '/{emo_1f637}': emo_1f637, //口罩

  '/{emo_1f4aa}': emo_1f4aa, //肌肉
  '/{emo_1f44a}': emo_1f44a, //碰拳
  '/{emo_1f44c}': emo_1f44c, //OK
  '/{emo_1f44d}': emo_1f44d, //强
  '/{emo_1f44e}': emo_1f44e, //弱
  '/{emo_1f44f}': emo_1f44f, //鼓掌
  '/{emo_1f64f}': emo_1f64f, //保佑
  '/{emo_1f446}': emo_1f446, //向上
  '/{emo_1f447}': emo_1f447, //向下
  '/{emo_1f448}': emo_1f448, //向左
  '/{emo_1f449}': emo_1f449, //向右
  '/{emo_261d}': emo_261d, //不是
  '/{emo_270a}': emo_270a, //拳头
  '/{emo_270b}': emo_270b, //手掌
  '/{emo_270c}': emo_270c, //剪刀

  '/{emo_1f4a1}': emo_1f4a1, //灯泡
  '/{emo_1f4a3}': emo_1f4a3, //炸弹
  '/{emo_1f4a9}': emo_1f4a9, //大便
  '/{emo_1f437}': emo_1f437, //猪头
  '/{emo_bixin}': emo_bixin, //比心
};

// 符号->中文
export const EMOJIS_ZH = {


  '/{emo_1f60a}': '[可爱]',
  '/{emo_1f60d}': '[色]',
  '/{emo_1f60e}': '[得意]',
  '/{emo_1f60f}': '[阴险]',
  '/{emo_1f61d}': '[调皮]',
  '/{emo_1f61f}': '[皱眉]',
  '/{emo_1f62a}': '[叹气]',
  '/{emo_1f62b}': '[伤心]',
  '/{emo_1f62c}': '[尴尬笑]',
  '/{emo_1f62d}': '[哭]',
  '/{emo_1f62f}': '[惊讶]',
  '/{emo_1f63e}': '[右哼哼]',
  '/{emo_1f600}': '[微笑]',
  '/{emo_1f601}': '[露齿笑]',
  '/{emo_1f602}': '[哭笑]',
  '/{emo_1f605}': '[尴尬]',
  '/{emo_1f606}': '[大笑]',
  '/{emo_1f607}': '[天使]',
  '/{emo_1f608}': '[魔鬼]',
  '/{emo_1f609}': '[眨眼]',
  '/{emo_1f610}': '[难过]',
  '/{emo_1f612}': '[鄙视]',
  '/{emo_1f613}': '[汗]',
  '/{emo_1f614}': '[失落]',
  '/{emo_1f615}': '[不屑]',
  '/{emo_1f616}': '[郁闷]',
  '/{emo_1f618}': '[亲亲]',
  '/{emo_1f621}': '[发怒]',
  '/{emo_1f624}': '[气愤]',
  '/{emo_1f625}': '[不安]',
  '/{emo_1f629}': '[发愁]',
  '/{emo_1f631}': '[尖叫]',
  '/{emo_1f633}': '[囧]',
  '/{emo_1f634}': '[睡]',
  '/{emo_1f635}': '[晕]',
  '/{emo_1f637}': '[口罩]',

  '/{emo_1f4aa}': '[肌肉]',
  '/{emo_1f44a}': '[碰拳]',
  '/{emo_1f44c}': '[OK]',
  '/{emo_1f44d}': '[强]',
  '/{emo_1f44e}': '[弱]',
  '/{emo_1f44f}': '[鼓掌]',
  '/{emo_1f64f}': '[保佑]',
  '/{emo_1f446}': '[向上]',
  '/{emo_1f447}': '[向下]',
  '/{emo_1f448}': '[向左]',
  '/{emo_1f449}': '[向右]',
  '/{emo_261d}': '[不是]',
  '/{emo_270a}': '[拳头]',
  '/{emo_270b}': '[手掌]',
  '/{emo_270c}': '[剪刀]',

  '/{emo_1f4a1}': '[灯泡]',
  '/{emo_1f4a3}': '[炸弹]',
  '/{emo_1f4a9}': '[大便]',
  '/{emo_1f437}': '[猪头]',
  '/{emo_bixin}': '[比心]',

}

export const invertKeyValues = obj =>
  Object.keys(obj).reduce((acc, key) => {
    acc[obj[key]] = key
    return acc
  }, {})

const default_emoji = () => {
  const strMap = new Map()
  let index = 0
  const data = []
  for (const key of Object.keys(EMOJIS_DATA)) {
    strMap.set(key, EMOJIS_DATA[key])
  }
  for (const val of strMap.keys()) {
    data.push({
      key: index,
      value: val
    })
    index++
  }

  const page0 = data.slice(0, 23)
  const page1 = data.slice(23, 46)
  const page2 = data.slice(46, 69)
  // const page3 = data.slice(69, 92)
  // const page4 = data.slice(92, 115)

  page0.push({
    key: 100,
    value: '/{del}'
  })
  page1.push({
    key: 101,
    value: '/{del}'
  })
  page2.push({
    key: 102,
    value: '/{del}'
  })
  // page3.push({
  //   key: 103,
  //   value: '/{del}'
  // })
  // page4.push({
  //   key: 104,
  //   value: '/{del}'
  // })
  // return [page0, page1, page2, page3, page4]
  return [page0, page1, page2]
}

export const DEFAULT_EMOJI = default_emoji()
